package com.caishi.lkx.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caishi.lkx.user.ienum.type.UserAccountType;
import com.caishi.lkx.user.model.ChannelBusinessModel;
import com.zzw.common.exception.BizException;
import com.zzw.common.service.NameService;

import java.util.Map;

public interface IChannelBusinessService extends IUserService<ChannelBusinessModel>, NameService<ChannelBusinessModel, String> {
    String code2Name(String code);

    IPage<ChannelBusinessModel> search(Map<String, Object> param, Page<ChannelBusinessModel> page, boolean total);

    ChannelBusinessModel addUser(ChannelBusinessModel model, UserAccountType loginType) throws BizException;
}
